3.318 \(\int (A+B x) \sqrt{a+c x^2} \, dx\)

Optimal. Leaf size=67 \[ \frac{1}{2} A x \sqrt{a+c x^2}+\frac{a A \tanh ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{a+c x^2}}\right )}{2 \sqrt{c}}+\frac{B \left (a+c x^2\right )^{3/2}}{3 c} \]

[Out]

(A*x*Sqrt[a + c*x^2])/2 + (B*(a + c*x^2)^(3/2))/(3*c) + (a*A*ArcTanh[(Sqrt[c]*x)
/Sqrt[a + c*x^2]])/(2*Sqrt[c])

_______________________________________________________________________________________

Rubi [A]  time = 0.0490774, antiderivative size = 67, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.235 \[ \frac{1}{2} A x \sqrt{a+c x^2}+\frac{a A \tanh ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{a+c x^2}}\right )}{2 \sqrt{c}}+\frac{B \left (a+c x^2\right )^{3/2}}{3 c} \]

Antiderivative was successfully verified.

[In]  Int[(A + B*x)*Sqrt[a + c*x^2],x]

[Out]

(A*x*Sqrt[a + c*x^2])/2 + (B*(a + c*x^2)^(3/2))/(3*c) + (a*A*ArcTanh[(Sqrt[c]*x)
/Sqrt[a + c*x^2]])/(2*Sqrt[c])

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 6.80179, size = 58, normalized size = 0.87 \[ \frac{A a \operatorname{atanh}{\left (\frac{\sqrt{c} x}{\sqrt{a + c x^{2}}} \right )}}{2 \sqrt{c}} + \frac{A x \sqrt{a + c x^{2}}}{2} + \frac{B \left (a + c x^{2}\right )^{\frac{3}{2}}}{3 c} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((B*x+A)*(c*x**2+a)**(1/2),x)

[Out]

A*a*atanh(sqrt(c)*x/sqrt(a + c*x**2))/(2*sqrt(c)) + A*x*sqrt(a + c*x**2)/2 + B*(
a + c*x**2)**(3/2)/(3*c)

_______________________________________________________________________________________

Mathematica [A]  time = 0.0502834, size = 67, normalized size = 1. \[ \frac{\sqrt{a+c x^2} (2 a B+c x (3 A+2 B x))+3 a A \sqrt{c} \log \left (\sqrt{c} \sqrt{a+c x^2}+c x\right )}{6 c} \]

Antiderivative was successfully verified.

[In]  Integrate[(A + B*x)*Sqrt[a + c*x^2],x]

[Out]

(Sqrt[a + c*x^2]*(2*a*B + c*x*(3*A + 2*B*x)) + 3*a*A*Sqrt[c]*Log[c*x + Sqrt[c]*S
qrt[a + c*x^2]])/(6*c)

_______________________________________________________________________________________

Maple [A]  time = 0.006, size = 53, normalized size = 0.8 \[{\frac{Ax}{2}\sqrt{c{x}^{2}+a}}+{\frac{aA}{2}\ln \left ( \sqrt{c}x+\sqrt{c{x}^{2}+a} \right ){\frac{1}{\sqrt{c}}}}+{\frac{B}{3\,c} \left ( c{x}^{2}+a \right ) ^{{\frac{3}{2}}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((B*x+A)*(c*x^2+a)^(1/2),x)

[Out]

1/2*A*x*(c*x^2+a)^(1/2)+1/2*A*a/c^(1/2)*ln(c^(1/2)*x+(c*x^2+a)^(1/2))+1/3*B*(c*x
^2+a)^(3/2)/c

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(sqrt(c*x^2 + a)*(B*x + A),x, algorithm="maxima")

[Out]

Exception raised: ValueError

_______________________________________________________________________________________

Fricas [A]  time = 0.309551, size = 1, normalized size = 0.01 \[ \left [\frac{3 \, A a c \log \left (-2 \, \sqrt{c x^{2} + a} c x -{\left (2 \, c x^{2} + a\right )} \sqrt{c}\right ) + 2 \,{\left (2 \, B c x^{2} + 3 \, A c x + 2 \, B a\right )} \sqrt{c x^{2} + a} \sqrt{c}}{12 \, c^{\frac{3}{2}}}, \frac{3 \, A a c \arctan \left (\frac{\sqrt{-c} x}{\sqrt{c x^{2} + a}}\right ) +{\left (2 \, B c x^{2} + 3 \, A c x + 2 \, B a\right )} \sqrt{c x^{2} + a} \sqrt{-c}}{6 \, \sqrt{-c} c}\right ] \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(sqrt(c*x^2 + a)*(B*x + A),x, algorithm="fricas")

[Out]

[1/12*(3*A*a*c*log(-2*sqrt(c*x^2 + a)*c*x - (2*c*x^2 + a)*sqrt(c)) + 2*(2*B*c*x^
2 + 3*A*c*x + 2*B*a)*sqrt(c*x^2 + a)*sqrt(c))/c^(3/2), 1/6*(3*A*a*c*arctan(sqrt(
-c)*x/sqrt(c*x^2 + a)) + (2*B*c*x^2 + 3*A*c*x + 2*B*a)*sqrt(c*x^2 + a)*sqrt(-c))
/(sqrt(-c)*c)]

_______________________________________________________________________________________

Sympy [A]  time = 7.52247, size = 70, normalized size = 1.04 \[ \frac{A \sqrt{a} x \sqrt{1 + \frac{c x^{2}}{a}}}{2} + \frac{A a \operatorname{asinh}{\left (\frac{\sqrt{c} x}{\sqrt{a}} \right )}}{2 \sqrt{c}} + B \left (\begin{cases} \frac{\sqrt{a} x^{2}}{2} & \text{for}\: c = 0 \\\frac{\left (a + c x^{2}\right )^{\frac{3}{2}}}{3 c} & \text{otherwise} \end{cases}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((B*x+A)*(c*x**2+a)**(1/2),x)

[Out]

A*sqrt(a)*x*sqrt(1 + c*x**2/a)/2 + A*a*asinh(sqrt(c)*x/sqrt(a))/(2*sqrt(c)) + B*
Piecewise((sqrt(a)*x**2/2, Eq(c, 0)), ((a + c*x**2)**(3/2)/(3*c), True))

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.274613, size = 74, normalized size = 1.1 \[ -\frac{A a{\rm ln}\left ({\left | -\sqrt{c} x + \sqrt{c x^{2} + a} \right |}\right )}{2 \, \sqrt{c}} + \frac{1}{6} \, \sqrt{c x^{2} + a}{\left ({\left (2 \, B x + 3 \, A\right )} x + \frac{2 \, B a}{c}\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(sqrt(c*x^2 + a)*(B*x + A),x, algorithm="giac")

[Out]

-1/2*A*a*ln(abs(-sqrt(c)*x + sqrt(c*x^2 + a)))/sqrt(c) + 1/6*sqrt(c*x^2 + a)*((2
*B*x + 3*A)*x + 2*B*a/c)